//
//  UIView+DF.h
//  换换圈
//
//  Created by 艾柯斯 on 14-11-13.
//  Copyright (c) 2014年 艾柯斯. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface UIView (DF)

#pragma mark 子视图
- (void)removeSubviews;
- (void)removeSubviewsWithClassFromString:(NSString*)className recursion:(BOOL)recursion;




#pragma mark Frame相关
@property (nonatomic) CGFloat x;
@property (nonatomic) CGFloat y;
@property (nonatomic) CGFloat centerX;
@property (nonatomic) CGFloat centerY;
@property (nonatomic) CGFloat width;
@property (nonatomic) CGFloat height;
@property (nonatomic) CGFloat left;
@property (nonatomic) CGFloat top;
@property (nonatomic) CGFloat right;
@property (nonatomic) CGFloat bottom;
@property (nonatomic) CGSize size;
@property (nonatomic) CGPoint origin;


#pragma mark 样式相关
- (void)round;

#pragma mark 屏幕相关
- (void)showToScreen;
- (void)showToScreen:(void (^)(UIView *backgroundView))willShow didShow:(void (^)(UIView *backgroundView))didShow;
- (void)hideForScreen;
- (void)hideForScreen:(void (^)(UIView *backgroundView))willHide didHide:(void (^)(UIView *backgroundView))didHide;

#pragma mark 遮罩相关
+ (instancetype)coverWithBackgroundColor:(UIColor*)backgroundColor;
+ (instancetype)coverWithFrame:(CGRect)frame backgroundColor:(UIColor*)backgroundColor;

- (instancetype)addToWindow;
@end

